'use strict';

module.exports = () => {
  return async function(ctx, next) { // 合并 query body
    const { params = {}, query = {}, request: { body } } = ctx;
    params.query = query;
    params.body = body;
    ctx.params = params;
    await next();
  };
};
